﻿using System;
namespace Pay.DTO {
	/// <summary>
	/// 店铺信息
	/// </summary>
	[Serializable]
	public class shop_dto {
		public shop_dto() {
			setting = new shop_setting();
		}
		/// <summary>
		/// 店铺id
		/// </summary>
		public long id { get; set; }
		/// <summary>
		/// 商户id
		/// </summary>
		public long merchant_id { get; set; }
		/// <summary>
		/// 店铺名称
		/// </summary>
		public string shop_name { get; set; }
		/// <summary>
		/// 店铺LOGO路径
		/// </summary>
		public string logo { get; set; }
		/// <summary>
		/// 背景图
		/// </summary>
		public string banner { get; set; }
		/// <summary>
		/// 详情
		/// </summary>
		public string description { get; set; }
		/// <summary>
		/// 是否禁用
		/// </summary>
		public bool disabled { get; set; }
		/// <summary>
		/// 店铺创建日期
		/// </summary>
		public DateTime create_date { get; set; }
		/// <summary>
		/// 省ID
		/// </summary>
		public long province_id { get; set; }
		/// <summary>
		/// 市场ID
		/// </summary>
		public long city_id { get; set; }
		/// <summary>
		/// 县区ID
		/// </summary>
		public long? area_id { get; set; }
		/// <summary>
		/// 省市区
		/// </summary>
		public string region_name { get; set; }
		/// <summary>
		/// 具体街道信息
		/// </summary>
		public string address { get; set; }
		/// <summary>
		/// 商家电话
		/// </summary>
		public string seller_phone { get; set; }
		/// <summary>
		/// 获取积分的比例，如10，就是1元
		/// </summary>
		public decimal in_rate { get; set; }
		/// <summary>
		/// 消费积分比例，如10，就是10积分
		/// </summary>
		public decimal out_rate { get; set; }
		/// <summary>
		/// 是否启用积分
		/// </summary>
		public bool is_int { get; set; }
		/// <summary>
		/// 店铺配置，进件
		/// </summary>
		public shop_setting setting { get; set; }
	}
    [Serializable]
    public class shop_cart_dto {
        public long shop_id { get; set; }
        public string shop_name { get; set; }
        public string logo { get; set; }
    }
	/// <summary>
	/// 店铺进件配置
	/// </summary>
	[Serializable]
	public class shop_setting {
		public shop_setting() {
			hf_set = new hf_native_set();
		}
		/// <summary>
		/// HF进件配置
		/// </summary>
		public hf_native_set hf_set { get; set; }
	}

	/// <summary>
	/// HF进件配置
	/// </summary>
	[Serializable]
	public class hf_native_set {
		/// <summary>
		/// 微信经营类目
		/// </summary>
		public string category_wx { get; set; }
		/// <summary>
		/// 支付宝经营类目
		/// </summary>
		public string category_zfb { get; set; }
		/// <summary>
		/// 微信号
		/// </summary>
		public string wx_account { get; set; }
	}

	/// <summary>
	/// 保存店铺请求
	/// </summary>
	[Serializable]
	public class shop_model : head_req {
		/// <summary>
		/// 店铺名称
		/// </summary>
		public string shop_name { get; set; }
		/// <summary>
		/// 店铺LOGO路径
		/// </summary>
		public string logo { get; set; }
		/// <summary>
		/// 背景图
		/// </summary>
		public string banner { get; set; }
		/// <summary>
		/// 详情
		/// </summary>
		public string description { get; set; }
		/// <summary>
		/// 省ID
		/// </summary>
		public long province_id { get; set; }
		/// <summary>
		/// 市场ID
		/// </summary>
		public long city_id { get; set; }
		/// <summary>
		/// 县区ID
		/// </summary>
		public long? area_id { get; set; }
		/// <summary>
		/// 具体街道信息
		/// </summary>
		public string address { get; set; }
		/// <summary>
		/// 商家电话
		/// </summary>
		public string seller_phone { get; set; }
		/// <summary>
		/// 获取积分的比例，如10，就是1元
		/// </summary>
		public decimal in_rate { get; set; }
		/// <summary>
		/// 消费积分比例，如10，就是10积分
		/// </summary>
		public decimal out_rate { get; set; }
		/// <summary>
		/// 是否启用积分
		/// </summary>
		public bool is_int { get; set; }
		/// <summary>
		/// 微信经营类目
		/// </summary>
		public string category_wx { get; set; }
		/// <summary>
		/// 支付宝经营类目
		/// </summary>
		public string category_zfb { get; set; }
		/// <summary>
		/// 微信号
		/// </summary>
		public string wx_account { get; set; }
	}
}
